package com.kingdee.eas.custom.sync;

import org.apache.log4j.Logger;
import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK; //import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean; //import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;

import com.kingdee.eas.common.EASBizException;

/**
 * @copyright 天津金蝶软件有限公司 Title: SyncPersonDataFacadeControllerBean Description:
 *            正式数据中心职员同步至事业单位无职位人员Facade
 * @author 冯小红 Email:tjfengxiaohong@kingdee.com
 * @date 2019-8-13
 */
public class SyncPersonDataFacadeControllerBean extends AbstractSyncPersonDataFacadeControllerBean {
    private static Logger logger = Logger
            .getLogger("com.kingdee.eas.custom.sync.SyncPersonDataFacadeControllerBean");

    /**
     * 
     * <p>
     * Title: _syncChangePersonData
     * </p>
     * <p>
     * Description: 正式数据中心职员组织变更的数据同步至事业单位
     * </p>
     * 
     * @param ctx
     * @return boolean 操作是否成功
     * @throws BOSException
     * @throws EASBizException
     * @see com.kingdee.eas.custom.sync.AbstractSyncPersonDataFacadeControllerBean#_syncChangePersonData(com.kingdee.bos.Context)
     */
    @Override
    protected boolean _syncChangePersonData(Context ctx) throws BOSException, EASBizException {
        // TODO 尤其注意：只有职员表中 组织进行变更了才视为变更数据 （组织变更标识Key 不能直接用内码fid 需要比对编码名称判断是否变更）
        // Todo：1. sss 2.ssss3..sss
        return super._syncChangePersonData(ctx);
    }

    /**
     * 
     * <p>
     * Title: _syncCurrentDayPersonData
     * </p>
     * <p>
     * Description: 当天职员数据同步至事业单位无职位人员
     * </p>
     * 
     * @param ctx
     * @return boolean 操作是否成功
     * @throws BOSException
     * @throws EASBizException
     * @see com.kingdee.eas.custom.sync.AbstractSyncPersonDataFacadeControllerBean#_syncCurrentDayPersonData(com.kingdee.bos.Context)
     */
    @Override
    protected boolean _syncCurrentDayPersonData(Context ctx) throws BOSException, EASBizException {
        // TODO Auto-generated method stub
        return super._syncCurrentDayPersonData(ctx);
    }

    /**
     * 
     * <p>
     * Title: _syncHistoryPersonData
     * </p>
     * <p>
     * Description: 比对正式数据中心与事业单位职员数据进行全量比对同步，可用于历史数据同步及特殊情况同步数据
     * </p>
     * 
     * @param ctx
     * @return boolean 操作是否成功
     * @throws BOSException
     * @throws EASBizException
     * @see com.kingdee.eas.custom.sync.AbstractSyncPersonDataFacadeControllerBean#_syncHistoryPersonData(com.kingdee.bos.Context)
     */
    @Override
    protected boolean _syncHistoryPersonData(Context ctx) throws BOSException, EASBizException {
        // TODO Auto-generated method stub
        return super._syncHistoryPersonData(ctx);
    }

}